﻿using MySql.Data.EntityFramework;
using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Data.Entity.Infrastructure;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AIVOnline.TopologyModel.PathModel
{
    [DbConfigurationType(typeof(MySqlEFConfiguration))]
    public  class AIVOnlineDbContext : DbContext
    {
        public AIVOnlineDbContext()
            : base("aivonline_db_connect")
        {
        }

        public AIVOnlineDbContext(string ConnectNameOrConnectString)
            : base(ConnectNameOrConnectString)
        {
        }

        protected override void OnModelCreating(DbModelBuilder modelBuilder)
        {
            //
            base.OnModelCreating(modelBuilder);
        }

        public  DbSet<AIVNode> AIVNodes { get; set; }
        
        public DbSet<AIVNodeState> AIVNodeStates { get; set; }

        public  DbSet<Edge> Edges { get; set; }


    }
}
